xsm: Add xsm_map_domain_pirq hook
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 2 Feb 2012 15:18:19 +0000 (15:18 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 2 Feb 2012 15:18:19 +0000 (15:18 +0000)
commitf2aba4f387b67238cd3293167ee3ee6b674d5b4f
tree3df81d4ee5cdb96a508abc490f591ed61f3f53b9
parent99b70ee44e330cac545b13eae7085baffeb74ac0
xsm: Add xsm_map_domain_pirq hook

When checking permissions in map_domain_pirq, the msi_desc field of
the irq_desc is not yet populated with the PCI device being used. Pass
in the msi_info structure which contains the intended PCI device whose
label will be used in the security check.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/irq.c
xen/include/xsm/xsm.h
xen/xsm/dummy.c
xen/xsm/flask/hooks.c